package com.salton123.whiteboard;

/**
 * User: wujinsheng1@yy.com
 * Date: 2020/5/22 11:43
 * ModifyTime: 11:43
 * Description:内置部分小图标
 */
public class SvgIcons {
    public static String fiveStarWithColor(String color, float x, float y) {
        return String.format("<svg width=\"100%\"\n" +
                "    height=\"100%\"\n" +
                "    xmlns=\"http://www.w3.org/2000/svg\"\n" +
                "    viewBox=\"0 0 0 0\"\n" +
                "    version=\"1.1\">\n" +
                "    <g\n" +
                "        fill=\"none\"\n" +
                "        stroke=\"black\"\n" +
                "        stroke-width=\"1\"\n" +
                "        fill-rule=\"evenodd\"\n" +
                "        stroke-linecap=\"square\"\n" +
                "        stroke-linejoin=\"bevel\">\n" +
                "        <g\n" +
                "            fill=\"none\"\n" +
                "            stroke=\"#000000\"\n" +
                "            stroke-opacity=\"1\"\n" +
                "            stroke-width=\"1\"\n" +
                "            stroke-linecap=\"square\"\n" +
                "            stroke-linejoin=\"bevel\"\n" +
                "            transform=\"matrix(9.59251,0,0,9.59251,%f,%f)\"\n" +
                "            font-family=\"Microsoft YaHei\"\n" +
                "            font-size=\"12\"\n" +
                "            font-weight=\"400\"\n" +
                "            font-style=\"normal\"></g>\n" +
                "        <g\n" +
                "            fill=\"%s\"\n" +
                "            fill-opacity=\"1\"\n" +
                "            stroke=\"none\"\n" +
                "            transform=\"matrix(9.59251,0,0,9.59251,%f,%f)\"\n" +
                "            font-family=\"Microsoft YaHei\"\n" +
                "            font-size=\"12\"\n" +
                "            font-weight=\"400\"\n" +
                "            font-style=\"normal\">\n" +
                "            <path\n" +
                "                vector-effect=\"non-scaling-stroke\"\n" +
                "                fill-rule=\"nonzero\"\n" +
                "                d=\"M7.99994,12.7323 L4.11423,14.4629 C3.89623,14.56 3.64166,14.4601 3.54561,14.2398 C3.51553,14.1708 3.50367,14.0951 3.51119,14.02 L3.93892,9.75017 L1.1097,6.54992 C0.950968,6.37039 0.966309,6.09481 1.14394,5.93439 C1.19957,5.88416 1.26713,5.84936 1.34004,5.83341 L5.49011,4.9251 L7.62725,1.21659 C7.74714,1.00855 8.0112,0.938138 8.21704,1.05931 C8.2815,1.09726 8.33511,1.15145 8.37266,1.2166 L10.5098,4.92512 L14.6599,5.83341 C14.8927,5.88436 15.0406,6.11642 14.9901,6.35171 C14.9744,6.4254 14.9399,6.4937 14.8902,6.54992 L12.0609,9.75017 L12.4887,14.02 C12.5127,14.2596 12.34,14.4734 12.103,14.4977 C12.0288,14.5053 11.9539,14.4933 11.8856,14.4629 L7.99994,12.7322 L7.99994,12.7323\" />\n" +
                "        </g>\n" +
                "        <g\n" +
                "            fill=\"none\"\n" +
                "            stroke=\"%s\"\n" +
                "            stroke-opacity=\"1\"\n" +
                "            stroke-width=\"1\"\n" +
                "            stroke-linecap=\"butt\"\n" +
                "            stroke-linejoin=\"miter\"\n" +
                "            stroke-miterlimit=\"4\"\n" +
                "            transform=\"matrix(9.59251,0,0,9.59251,%f,%f)\"\n" +
                "            font-family=\"Microsoft YaHei\"\n" +
                "            font-size=\"12\"\n" +
                "            font-weight=\"400\"\n" +
                "            font-style=\"normal\">\n" +
                "            <path\n" +
                "                vector-effect=\"none\"\n" +
                "                fill-rule=\"nonzero\"\n" +
                "                d=\"M7.99994,12.7323 L4.11423,14.4629 C3.89623,14.56 3.64166,14.4601 3.54561,14.2398 C3.51553,14.1708 3.50367,14.0951 3.51119,14.02 L3.93892,9.75017 L1.1097,6.54992 C0.950968,6.37039 0.966309,6.09481 1.14394,5.93439 C1.19957,5.88416 1.26713,5.84936 1.34004,5.83341 L5.49011,4.9251 L7.62725,1.21659 C7.74714,1.00855 8.0112,0.938138 8.21704,1.05931 C8.2815,1.09726 8.33511,1.15145 8.37266,1.2166 L10.5098,4.92512 L14.6599,5.83341 C14.8927,5.88436 15.0406,6.11642 14.9901,6.35171 C14.9744,6.4254 14.9399,6.4937 14.8902,6.54992 L12.0609,9.75017 L12.4887,14.02 C12.5127,14.2596 12.34,14.4734 12.103,14.4977 C12.0288,14.5053 11.9539,14.4933 11.8856,14.4629 L7.99994,12.7322 L7.99994,12.7323\" />\n" +
                "        </g>\n" +
                "        <g\n" +
                "            fill=\"none\"\n" +
                "            stroke=\"#000000\"\n" +
                "            stroke-opacity=\"1\"\n" +
                "            stroke-width=\"1\"\n" +
                "            stroke-linecap=\"square\"\n" +
                "            stroke-linejoin=\"bevel\"\n" +
                "            transform=\"matrix(9.59251,0,0,9.59251,%f,%f)\"\n" +
                "            font-family=\"Microsoft YaHei\"\n" +
                "            font-size=\"12\"\n" +
                "            font-weight=\"400\"\n" +
                "            font-style=\"normal\"></g>\n" +
                "    </g>\n" +
                "</svg>", x, y, color, x, y, x, y);
    }
}
